/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Classes;

/**
 *
 * @author alexander
 */
public class Immo {
    
    private int         immoID;
    private String      immoHeadline;
    private String      immoDescription;
    private String      immoCategory;
    private int         immoSaleOrRent;
    private int         linvingArea;
    private int         sizeOfTheArea;
    private boolean     isAHouse;
    private int         numberOfRooms;
    private int         price;
    private String      address;
    private String      zipCode;
    private String      country;
    private String      state;
    private boolean     isSold;
    private String      searchString;
    private int         year;


    /**
     * @return the immoID
     */
    public int getImmoID() {
        return immoID;
    }

    /**
     * @param immoID the immoID to set
     */
    public void setImmoID(int immoID) {
        this.immoID = immoID;
    }

    /**
     * @return the immoHeadline
     */
    public String getImmoHeadline() {
        return immoHeadline;
    }

    /**
     * @param immoHeadline the immoHeadline to set
     */
    public void setImmoHeadline(String immoHeadline) {
        this.immoHeadline = immoHeadline;
    }

    /**
     * @return the immoDescription
     */
    public String getImmoDescription() {
        return immoDescription;
    }

    /**
     * @param immoDescription the immoDescription to set
     */
    public void setImmoDescription(String immoDescription) {
        this.immoDescription = immoDescription;
    }

    /**
     * @return the immoCategory
     */
    public String getImmoCategory() {
        return immoCategory;
    }

    /**
     * @param immoCategory the immoCategory to set
     */
    public void setImmoCategory(String immoCategory) {
        this.immoCategory = immoCategory;
    }

    /**
     * @return the linvingArea
     */
    public int getLinvingArea() {
        return linvingArea;
    }

    /**
     * @param linvingArea the linvingArea to set
     */
    public void setLinvingArea(int linvingArea) {
        this.linvingArea = linvingArea;
    }

    /**
     * @return the sizeOfTheArea
     */
    public int getSizeOfTheArea() {
        return sizeOfTheArea;
    }

    /**
     * @param sizeOfTheArea the sizeOfTheArea to set
     */
    public void setSizeOfTheArea(int sizeOfTheArea) {
        this.sizeOfTheArea = sizeOfTheArea;
    }

    /**
     * @return the isAHouse
     */
    public boolean isIsAHouse() {
        return isAHouse;
    }

    /**
     * @param isAHouse the isAHouse to set
     */
    public void setIsAHouse(boolean isAHouse) {
        this.isAHouse = isAHouse;
    }

    /**
     * @return the numberOfRooms
     */
    public int getNumberOfRooms() {
        return numberOfRooms;
    }

    /**
     * @param numberOfRooms the numberOfRooms to set
     */
    public void setNumberOfRooms(int numberOfRooms) {
        this.numberOfRooms = numberOfRooms;
    }

    /**
     * @return the price
     */
    public int getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(int price) {
        this.price = price;
    }

    /**
     * @return the isSold
     */
    public boolean isIsSold() {
        return isSold;
    }

    /**
     * @param isSold the isSold to set
     */
    public void setIsSold(boolean isSold) {
        this.isSold = isSold;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the zipCode
     */
    public String getZipCode() {
        return zipCode;
    }

    /**
     * @param zipCode the zipCode to set
     */
    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    /**
     * @return the country
     */
    public String getCountry() {
        return country;
    }

    /**
     * @param country the country to set
     */
    public void setCountry(String country) {
        this.country = country;
    }

    /**
     * @return the state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * @return the searchString
     */
    public String getSearchString() {
        return searchString;
    }

    /**
     * @param searchString the searchString to set
     */
    public void setSearchString(String searchString) {
        this.searchString = searchString;
    }

    /**
     * @return the year
     */
    public int getYear() {
        return year;
    }

    /**
     * @param year the year to set
     */
    public void setYear(int year) {
        this.year = year;
    }

    /**
     * @return the immoSaleOrRent
     */
    public int getImmoSaleOrRent() {
        return immoSaleOrRent;
    }

    /**
     * @param immoSaleOrRent the immoSaleOrRent to set
     */
    public void setImmoSaleOrRent(int immoSaleOrRent) {
        this.immoSaleOrRent = immoSaleOrRent;
    }
    
    public double getProvisionSum(){
        
        return (this.getPrice()*0.03);
    }
    

}
